/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cescorp.aplicacion.controller;

import com.cescorp.aplicacion.service.PeliculaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author C588
 */
@Controller
@RequestMapping("/")
public class IndexController {

    @Autowired
    private PeliculaService peliculaService;
    
    @RequestMapping(value = "index.htm", method = RequestMethod.GET)
    public String home() {
        return "index";
    }
    
//    @RequestMapping("/listar")
//    public String setupForm(Map<String,Object> map){
//        Pelicula pelicula=new Pelicula();
//        map.put("pelicula", pelicula);
//        map.put("peliculaList", peliculaService.getAll());
//        return "pelicula";
//    }
}
